WelcomeLabel1 = "Welcome to the %s Setup Wizard"
WelcomeLabel2 = "This will install %s / %s on your computer.\n\nIt is recommended that you close all other applications before continuing."

PackageName = "(not set)"
PackageVersion = "0.0.0.0(not set)"

function InitializeDefaults ()
	DisableDirPage = false
	DisableFinishedPage = false
	DisableProgramGroupPage = false
	DisableReadyMemo = false
	DisableReadyPage = false
	DisableStartupPrompt = false
	DisableWelcomePage = false
end

function ShouldSkipSection(aName)
  Core:Log("Checking for section: " .. aName)
  return false
end

function InitializeScript()
  Core:Log("InitializeScript")
	return true
end

function StartScript()
  return Core:StartUi()
end

function NextCommand(aCurrent)
  return true
end

function BackCommand(aCurrent)
  return true
end

function InitializeSectionWelcome()
  Core:Log("Setting text for 'Welcome' page")
  Core:SetLabelText("Welcome", "3", string.format(WelcomeLabel1, PackageName))
  Core:SetLabelText("Welcome", "4", string.format(WelcomeLabel2, PackageName, PackageVersion))
end

function InitializeSectionLicense()
  Core:Log("Setting text for 'License' page")
end

function InitializeSectionPassword()
  Core:Log("Setting text for 'Password' page")
end

function InitializeSection(aName)
  Core:Log("InitializeSection: "..aName)
  local Call = load("InitializeSection"..aName.."()")
  Call()
end
